import time
date=time.localtime()
print(date)

year,month,day=date[:3]
day_moth=[31,28,31,30,31,30,31,31,30,31,30,31]

if year%400==0 or (year%4==0 and year%100 != 0):
    day_moth[1]=29

if month==1:
    print(day)
else:
    print(sum(day_moth[:month-1])+day)


